package com.jinsi.service.tang.iml;


import com.jinsi.mapper.tang.ProductEditMapper;
import com.jinsi.pojo.Commodity;
import com.jinsi.service.tang.ProductEditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;

/**
 * 修改编辑商品类
 * @author 唐文博
 * @Date 2022-08-07
 */
@Service
@Transactional
public class ProductEditServiceImpl implements ProductEditService {
    @Autowired
    private ProductEditMapper productEditMapper;

    /**
     * 编辑商品内容
     * @param
     */
    @Override
    public void editCommodity(int commodityId, int commodityCode, String commodityName,
                              String commodityImage, int classifyId, int currentPrice,
                              String commodityDetails, String commodityLabel,
                              String searchKeywords, Date createDate) {
        productEditMapper.editCommodity(commodityId,commodityCode,commodityName,
                commodityImage,classifyId,currentPrice,commodityDetails,commodityLabel,
                searchKeywords,createDate);
    }
}
